/**
 * 仪表板API
 *
 * @author songxinfeng
 * @date 2025/1/15
 */
import request from '@/utils/request'

export interface DashboardStats {
  customerCount: number
  clueCount: number
  monthlyVisitCount: number
  conversionRate: number
  contactCount: number
  opportunityCount: number
}

/**
 * 获取仪表板统计数据
 */
export const getDashboardStats = () => {
  return request.get<DashboardStats>('/api/dashboard/stats')
}
